package com.qfjy.homework.zhangpengcheng;

/**
 * @author :zhangpengcheng
 * @version : 1.0
 * @date : 2022/11/10 19:25
 */
public class InterceptingFilterDemo {
    public static void main(String[] args) {
        FilterManager filterManager = new FilterManager(new Target());
        DebugFilter debugFilter = new DebugFilter();
        filterManager.setFilter(new AuthenticationFilter());
        filterManager.setFilter(debugFilter);

        Client client = new Client();
        client.setFilterManager(filterManager);
        client.sendRequest("HOME");
    }
}
